import React from 'react';
import styled from 'styled-components';
import {Button} from 'antd';
import './createBtn.css';
const Wrapper = styled.div`
  display: flex;
  margin-bottom: 20px;
`;
const DemandWrapper = styled.div`
  margin-right: 20px;
`;

export default function OperateBtn(props) {
  const {createDemand, bulkImport} = props;
  return (
    <Wrapper>
      <DemandWrapper>
        <Button
          type="primary"
          className="createBtn-sty"
          onClick={() => createDemand('创建需求')}
        >
          创建需求
        </Button>
      </DemandWrapper>
      <Button onClick={() => bulkImport('批量导入')}>批量导入</Button>
    </Wrapper>
  );
}
